import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.*;

public class MajorGroup {
    private String universityName;
    private List<Major> majors;

    public MajorGroup(String universityName) {
        this.universityName = universityName;
        this.majors = new ArrayList<>();
    }

    public String getUniversityName() {
        return universityName;
    }

    public List<Major> getMajors() {
        return majors;
    }

    public void addMajor(Major major) {
        majors.add(major);
    }
}